﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IViewBindable.cs" company="">
//   
// </copyright>
// <summary>
//   The ViewBindable interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.UseCases
{
    using System;

    /// <summary>
    ///   The ViewBindable interface.
    /// </summary>
    public interface IViewBindable
    {
        #region Public Events

        /// <summary>
        ///   The enabled changed.
        /// </summary>
        event Action<IViewBindable> EnabledChanged;

        /// <summary>
        ///   The unavailable.
        /// </summary>
        event Action<IViewBindable> Unavailable;

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets or sets a value indicating whether enabled.
        /// </summary>
        bool Enabled { get; set; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        ///   The raise on unavailable.
        /// </summary>
        void RaiseOnUnavailable();

        #endregion
    }
}